export default {
  getUserBaseData: (config) => {
    let { token } = JSON.parse(config.body);
    let user = {};
    if (token == "wuwenhao---wuwenhao") {
      user = {
        nick: "吴文浩",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "huzhentao---huzhentao") {
      user = {
        nick: "胡振涛",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "wangyuchen---wangyuchen") {
      user = {
        nick: "王宇辰",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "liubao---liubao") {
      user = {
        nick: "刘宝",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "miqicheng---miqicheng") {
      user = {
        nick: "密启成",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "linxiaoye---linxiaoye") {
      user = {
        nick: "林肖烨",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "shentuyating---shentuyating") {
      user = {
        nick: "申屠雅婷",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "liyupiao---liyupiao") {
      user = {
        nick: "李雨飘",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "wangjunhao---wangjunhao") {
      user = {
        nick: "王俊豪",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "wangruijie---wangruijie") {
      user = {
        nick: "王瑞杰",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    } else if (token == "youke---youke") {
      user = {
        nick: "游客",
        age: 22,
        address: "西安",
        username: "root",
        job: "前端",
      };
    }
    return {
      code: 200,
      msg: "登陆成功",
      data: user,
    };
  },
};
